package com.trf.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MybatisPlus配置类
 *
 * @author 小小唐
 * @Date 2022/6/19-星期日-23:39
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * 分页配置
     *
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
